package com.company;

public class L_StudentTestPeople extends L_People {
    private String stuNo;    //学号
    private String department;    //所学专业
    public L_StudentTestPeople(String name,int age,String sex,String sn,String stuno,String department)
    {
        super(name,age,sex,sn);    //调用父类中的构造方法
        this.stuNo=stuno;
        this.department=department;
    }
    public String toString()
    {
        return"姓名："+name+"\n年龄："+age+"\n性别："+sex+"\n身份证号："+sn+"\n学号："+stuNo+"\n所学专业："+department;
    }

}
